#include	"Show.h"

void ShowInFile::ShowResult( int cycle )
{
	fprintf( output, "===========  %d  ============\n", cycle );

	for( int i = 0; i < CONF::GRAIDNUM; i ++ )
	{
		for( int j = 0; j < CONF::GRAIDNUM; j ++ )
		{
			if( wm->mGrid[i][j].curr == 0 )
			{
				fprintf( output, "[]" );
			}	
			else if( wm->mGrid[i][j].curr == 1 )
			{
				fprintf( output, "██"  );
			}
		}

		fprintf( output, "\n");
	}
}

